import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';

class WithdrawLists extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return _WithdrawListsState();
  }
}

class _WithdrawListsState extends State<WithdrawLists> {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new Scaffold(
      appBar: AppBar(
        elevation: 0,
        title: new Text("提现记录"),
      ),
      body: new ListView(
        children: <Widget>[
          new SizedBox(
            height: 10.0,
          ),
          _lists(),
          _lists(),
        ],
      ),
    );
  }

  List<Widget> status = [
    new Text(
      "已到账",
      style: TextStyle(color: Colors.green),
    ),
    new Text(
      "待审核",
      style: TextStyle(color: Colors.black54),
    ),
    new Text(
      "已拒绝",
      style: TextStyle(color: Colors.red),
    ),
  ];

  Widget _lists() {
    return Container(
      child: new Column(
        children: <Widget>[
          new Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              new Row(
                children: <Widget>[
                  new Text(
                    "提现金额：",
                    style: TextStyle(fontSize: 18.0),
                  ),
                  new Text(
                    "¥22.64",
                    style: TextStyle(fontSize: 18.0),
                  ),
                ],
              ),
              status[1]
            ],
          ),
          new SizedBox(
            height: 10.0,
          ),
          new Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: <Widget>[
              new Row(
                children: <Widget>[
                  new Text(
                    "提现时间: 2020-05-13 53:55:00",
                    style: TextStyle(color: Colors.black54, fontSize: 13.0),
                  ),
                ],
              ),
              new Text("支付宝提现")
            ],
          )
        ],
      ),
      padding: EdgeInsets.all(20.0),
      margin: EdgeInsets.only(bottom: 10.0),
     decoration: BoxDecoration(
       color: Colors.white,
       border: Border(bottom: BorderSide(color: Color.fromRGBO(101, 93, 29, 0.1),width:1),top: BorderSide(color: Color.fromRGBO(101, 93, 29, 0.1),width:1)),
     ),
    );
  }
}
